package com.espirit.eap.sa;

import java.io.Serializable;

public enum ScopeType implements Serializable {
	None(0)
	, Basic(1)	// user
	, Local(2)	// biz department
	, Deep(3)	// up down department
	, Global(4);	// all
	int value;
	private ScopeType(int value){
		this.value = value;
	}
	public int toInt(){
		return value;
	}
	public ScopeType fromInt(int value){
		switch(value){
		case 4: return Global;
		case 3: return Deep;
		case 2: return Local;
		case 1: return Basic;
		case 0: return None;
		default : return Basic;
		}
	}
}
